package com.cp.admin.modular.user.model;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 聊天群信息表
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-31
 */
@TableName("chatgroup_info")
public class ChatgroupInfo extends Model<ChatgroupInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 聊天群id
     */
    private Long id;
    /**
     * 群主id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 聊天群成员数量
     */
    @TableField("chatgroup_number")
    private Integer chatgroupNumber;
    /**
     * 聊天群名字
     */
    @TableField("chatgroup_name")
    private String chatgroupName;
    /**
     * 是否同城群 0不是 1是
     */
    @TableField("chatgroup_city")
    private Integer chatgroupCity;
    /**
     * 进群费用
     */
    @TableField("enter_cost")
    private BigDecimal enterCost;
    /**
     * 1正常 -1解散
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("creat_time")
    private Date creatTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getChatgroupNumber() {
        return chatgroupNumber;
    }

    public void setChatgroupNumber(Integer chatgroupNumber) {
        this.chatgroupNumber = chatgroupNumber;
    }

    public String getChatgroupName() {
        return chatgroupName;
    }

    public void setChatgroupName(String chatgroupName) {
        this.chatgroupName = chatgroupName;
    }

    public Integer getChatgroupCity() {
        return chatgroupCity;
    }

    public void setChatgroupCity(Integer chatgroupCity) {
        this.chatgroupCity = chatgroupCity;
    }

    public BigDecimal getEnterCost() {
        return enterCost;
    }

    public void setEnterCost(BigDecimal enterCost) {
        this.enterCost = enterCost;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ChatgroupInfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", chatgroupNumber=" + chatgroupNumber +
        ", chatgroupName=" + chatgroupName +
        ", chatgroupCity=" + chatgroupCity +
        ", enterCost=" + enterCost +
        ", status=" + status +
        ", creatTime=" + creatTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
